package com.flitsneak.designpatterns.behavioralpatterns.state.concretestate;

import com.flitsneak.designpatterns.behavioralpatterns.state.Context;
import com.flitsneak.designpatterns.behavioralpatterns.state.EmotionalState;

/**
 * @author flitsneak
 * @email flitsneak@gmail.com
 * @date 2022/7/18 17:44
 * @description
 */
public class BuddhaLikeState extends EmotionalState {
    @Override
    public void normalState() {
        System.out.println("无法转常态");
    }

    @Override
    public void buddhaLikeState() {
        System.out.println("佛系状态");
    }

    @Override
    public void periodState() {
        super.context.setEmotionalState(Context.periodState);
        super.context.getEmotionalState().periodState();
    }

    @Override
    public void excitedState() {
        System.out.println("无法转兴奋状态");
    }
}
